﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Supplier/SupplierMasterPage.master"
    AutoEventWireup="true" CodeFile="AddEdit.aspx.cs" Inherits="Supplier_Location_AddEdit" %>

<asp:Content ID="Content2" ContentPlaceHolderID="pnlMain" runat="Server">
    <table cellpadding="0" cellspacing="0">
        <tr id="trSupplier" runat="server">
            <td>
                *Supplier
            </td>
            <td>
                <asp:DropDownList ID="ddlSupplier" runat="server" Width="200px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvSupplier" InitialValue="0" Display="Dynamic" runat="server"
                    ControlToValidate="ddlSupplier" ErrorMessage="Supplier is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                *Location
            </td>
            <td>
                <asp:DropDownList ID="ddlLocation" runat="server" Width="200px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvLocation" InitialValue="0" Display="Dynamic" runat="server"
                    ControlToValidate="ddlLocation" ErrorMessage="Location is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                *Address
            </td>
            <td>
                <asp:TextBox ID="txtAddress" MaxLength="300" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvAddress" Display="Dynamic" runat="server" ControlToValidate="txtAddress"
                    ErrorMessage="Address is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                *City
            </td>
            <td>
                <asp:TextBox ID="txtCity" MaxLength="100" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvCity" Display="Dynamic" runat="server" ControlToValidate="txtCity"
                    ErrorMessage="City is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                *Post Code
            </td>
            <td>
                <asp:TextBox ID="txtPostCode" MaxLength="50" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPostCode" Display="Dynamic" runat="server" ControlToValidate="txtPostCode"
                    ErrorMessage="Post Code is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                *Phone
            </td>
            <td>
                <asp:TextBox ID="txtPhone" MaxLength="50" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPhone" Display="Dynamic" runat="server" ControlToValidate="txtPhone"
                    ErrorMessage="Phone is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                *Mobile
            </td>
            <td>
                <asp:TextBox ID="txtMobile" MaxLength="50" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMobile" Display="Dynamic" runat="server" ControlToValidate="txtMobile"
                    ErrorMessage="Mobile is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Instruction
            </td>
            <td>
                <asp:TextBox ID="txtInstruction" MaxLength="300" Width="200" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Active
            </td>
            <td>
                <asp:CheckBox ID="chkActive" Checked="true" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />&nbsp;&nbsp;<asp:Button
                    ID="btnCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
